<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>BEdit.js Test Page</title>
<script src="suggest.js"></script>
<style>
<style>
#RText{position:relative;margin-left:300px}
#RText input{width:300px;height:18px}
#RTextShow{position:absolute;top:30px;background:#fff;border:1px solid #000;width:300px}
.suggest{}
.suggest-selected{background:#000;color:#fff}
</style>
</style>
</head>
<body>
<div id="RText">
    <input id="rinput" type="text"/>
    <div id="RTextShow"></div>
</div> 
<script>
 var s = new __BSuggest({
  	inputElement: document.getElementById('rinput'),
  	resultElement: document.getElementById('RTextShow'),
  	urlTpl: 'http://stat.pp.tv/do.ashx?action=getHotWords&w={0}',
  	process: function (o) { return '<div class="suggest">' + o[0] + '</div>' },
  	suffix : '<div><a href="#" class="suggest-close">关闭</a></div>'
  });  
</script>
</body>
</html>
                                                            